<?php
	class User extends BaseModel {

		private $idUser;
		private $email;
		private $nickname;
		private $userpass;
		private $code;
		private $active;
		private $reason;
		private $until;

		public function getIdUser() {
			return $this->idUser;
		}
		
		public function setIdUser($value) {
			$this->idUser = $value;
		}
		
		public function getEmail() {
			return $this->email;
		}
		
		public function setEmail($value) {
			$this->email = $value;
		}
		
		public function getNickname() {
			return $this->nickname;
		}
		
		public function setNickname($value) {
			$this->nickname = $value;
		}
		
		public function getUserpass() {
			return $this->userpass;
		}
		
		public function setUserpass($value) {
			$this->userpass = $value;
		}
		
		public function getCode() {
			return $this->code;
		}
		
		public function setCode($value) {
			$this->code = $value;
		}
		
		public function getActive() {
			return $this->active;
		}
		
		public function setActive($value) {
			$this->active = $value;
		}
		
		public function getReason() {
			return $this->reason;
		}
		
		public function setReason($value) {
			$this->reason = $value;
		}
		
		public function getUntil() {
			return $this->until;
		}
		
		public function setUntil($value) {
			$this->until = $value;
		}
		
		public function required() {
			return array(
				"idUser" => $this->idUser,
				"email" => $this->email,
				"nickname" => $this->nickname,
				"userpass" => $this->userpass,
				"active" => $this->active,
			);
		}

		public function json() {
			return array(
				"idUser" => $this->idUser,
				"email" => $this->email,
				"nickname" => $this->nickname,
				"userpass" => $this->userpass,
				"code" => $this->code,
				"active" => $this->active,
				"reason" => $this->reason,
				"until" => $this->until
			);
		}

	}